package com.bankcomm.common;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
public class ConstantRepository {


	/** Radio box images */
	public static Bitmap unRadioImg_;
	public static Bitmap radioImg_;


	/**
	 * waiting dialog prompt strings.
	 */
	final static int LOGIN = 0;
	public final static int LOADING_DATA = 1;
	final static int SENDING_DATA = 2;
	final static int HELPING = 3;
	final static int SET_LOCATION = 4;
	final static int LOADING = 5;
	public final static int SENDING = 6;
	final static int SAVING = 7;
	final static int DELETING = 8;
	final static int CHANGING_CHANNEL = 9;
	final static int SAVING_DATA = 10;
	final static int INIT_MAINVIEW = 11;

	
	 public static Bitmap decodeBitmap(Resources rs, int resId) {
	        Bitmap bitmap = null;
	        BitmapFactory.Options opts = new BitmapFactory.Options();
	        try {
	            BitmapFactory.Options.class.getField("inPurgeable").set(opts, true);
	        } catch (Exception e) {
	        }
	        try {
	            bitmap = BitmapFactory.decodeResource(rs, resId, opts);
	        } catch (Exception e) {
	        }
	        return bitmap;
	    }
}
